home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / p4 / p4-1_2a.lha / p4-1.2a / contrib_f / makefile.proto < prev    next >
Makefile  |  1992-10-19  |  905b  |  34 lines

  1. P4_HOME_DIR = ..
  2. INCLUDEDIR = $(P4_HOME_DIR)/include
  3. LIBDIR = $(P4_HOME_DIR)/lib
  4.  
  5. LIB = $(LIBDIR)/libp4.a
  6. FORTLIBDIR = $(P4_HOME_DIR)/lib_f
  7. FORTLIB = $(FORTLIBDIR)/libp4_f.a
  8.  
  9. MAIN = $(FORTLIBDIR)/p4_fmain.o
  10.  
  11. LIBS =  $(FORTLIB) $(LIB) $(MDEP_LIBS)
  12.  
  13. default:$(P)
  14.  
  15. all:$(P)
  16.     make $(MFLAGS) norm_master norm_slave
  17.     make $(MFLAGS) comm_master comm_slave
  18.  
  19. norm_master: norm_master.o norm_slave.o $(FORTLIB)  $(LIB)
  20.     $(FC) $(MDEP_FFLAGS) -o norm_master norm_master.o norm_slave.o $(LIBS)
  21.     
  22. norm_slave: norm_slave.o  $(FORTLIB)  $(LIB)
  23.     $(FC) $(MDEP_FFLAGS) -o norm_slave $(MAIN) norm_slave.o $(LIBS)
  24.  
  25. comm_master: comm_master.o comm_slave.o $(LIB)
  26.     $(FC) $(MDEP_FFLAGS) -o comm_master comm_master.o comm_slave.o $(LIBS)
  27.     
  28. comm_slave: comm_slave.o  $(LIB)
  29.     $(FC) $(MDEP_FFLAGS) -o comm_slave $(MAIN) comm_slave.o $(LIBS)
  30.  
  31. realclean: clean
  32.     $(RM) -f norm_master norm_slave comm_master comm_slave \
  33.     Makefile p4f.h
  34.